package org.example.Single;


//饿汉式单例，采用静态内部类，类加载时就执行，线程安全
public class Singleton01 {
    private  Singleton01(){

    }

    private static Singleton01 singleton01 = new Singleton01();

    public static Singleton01 getSingleton01() {
        return singleton01;
    }
}
